import itertools

def arithemtic_progression(a,d):
    for n in itertools.count(1):
        yield a + (n-1)*d
